import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {AppComponent} from './app.component';
import {ProductComponent} from './product/product.component';
import {ProductService} from './shared/product.service';
import {Product2Component} from './product2/product2.component';
import {LogService} from './shared/log.service';
import { Product3Component } from './product3/product3.component';
@NgModule({
    declarations: [
        AppComponent,
        ProductComponent,
        Product2Component,
        Product3Component
    ],
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule
    ],
    providers: [
        {provide: ProductService, useClass: ProductService},
        {provide: LogService, useClass: LogService}
    ],
    bootstrap: [AppComponent]

})
export class AppModule {

}
